package com.gf.utils;

import java.text.DecimalFormat;

/**
 * 常量类
 */
public class Const {

    public static final String PATH = "PATH";
    public static final String LOGIN_ADMIN = "loginAdmin";
    public static final String SIGN_LOGINACCT_ERROR = "账户已经存在";
    public static final String SIGN_LOGINACCT_SUCCESS = "账户不存在可以注册";
    public static final String SIGN_SUCCESS = "账户注册成功";
    public static final String LOGIN_SUCCESS = "账户密码正确";
    public static final String LOGIN_LOGINACCT_ERROR = "用户名称不存在!";
    public static final String LOGIN_USERPSWD_ERROR = "用户密码不正确!";
    public static final String DEFAULT_USERPSWD = "123456";
    public static final String ADDDISH_SUCESS = "添加成功";
    public static final String DELDISH_SUCESS = "删除成功";
    public static final String ADDDATA_SUCESS = "添加成功";
    public static final String ROOMNUMBERANDTL_NULL = "没有对应的地址手机号";
    public static final String HAS_ROOMNUMBERANDTL= "地址和手机号完整";
    public static final String ADDDATA_FAIL = "添加失败";
    public static final String NODISH ="您还有点任何菜品" ;
    public static final String NOSELF = "不能接自己的单";
    public static final String GETSUCCESS ="抢单成功" ;
    public static final String GETORDER_FAIL ="下单失败,购物车没有东西" ;
    public static final String NOSHOPNAME ="商铺名字不存在可以注册" ;
    public static final String HADSHOPNAME ="商铺名字存在" ;


    public static String UUID()
    {
        java.util.Random r=new java.util.Random();
        //如生成的随机位数不足6位则自动加零补充
        DecimalFormat g=new DecimalFormat("1000000");

        //返回时间增量+随机数的序列
        return String.format("%s%s",System.currentTimeMillis(),g.format(r.nextInt(10000000)));
    }
}
